package org.forex.impl.engine;

public class InstrumentTrend {
	
	public final String BUY="BUY";
	public final String SELL="SELL";
	public final String NONE="NONE";
	
	public void setCurrentPrice(InstrumentChoice insc, double price) {		
		if(insc.getPrevPrice()==-1)
			insc.setPrevPrice(insc.getCurrentPrice());		
		insc.setCurrentPrice(price);		
	}

	public String getOrderTrend(InstrumentChoice insc) {		
		return insc.getCurrentPrice() >= insc.getStartPrice()?BUY:SELL; 
	}

	public String findTrend(InstrumentHistory insH) {
		//TODO
		return null;
	}

}
